
#version 120

// manyAttributes.fp
// An example of using interpolated values from the previous stage

varying vec4 colour; // The per-vertex, colour attribute from the previous stage.

				// Take note that _per-vertex attributes_ are sent from previous stage
				// whereas uniforms are available for access in both stages

varying vec2 st;
uniform sampler2D texMap;

void main(void) {


	gl_FragColor = colour*texture2D(texMap, st);	// We now just have to set the already smoothed colour as our frag colour


}